﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace CodeSnippetsEditor
{
    public class ClassImportDetail
    {
        private string refer = string.Empty;

        /// <summary>
        /// Initializes a new instance of the <see cref="ClassImportDetail"/> class.
        /// </summary>
        public ClassImportDetail()
        { }

        /// <summary>
        /// Initializes a new instance of the <see cref="ClassImportDetail"/> class.
        /// </summary>
        /// <param name="reference">The reference.</param>
        public ClassImportDetail(string reference)
        {
            refer = reference;
        }

        /// <summary>
        /// Gets or sets the namespace.
        /// </summary>
        /// <value>The namespace.</value>
        [XmlElement()]
        public string Namespace
        {
            get
            {
                return refer;
            }
            set
            {
                refer = value;
            }
        }

        /// <summary>
        /// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
        /// </returns>
        public override string ToString()
        {
            return refer;
        }
    }
}
